package controller;

import entity.PermSite;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import service.PermSiteService;

import javax.annotation.Resource;

/**
 * 权限链接/页面配置表(PermSite)表控制层
 *
 * @author liujh
 * @since 2020-09-14 14:15:08
 */
@RestController
@RequestMapping("permSite")
public class PermSiteController {
    /**
     * 服务对象
     */
    @Resource
    private PermSiteService permSiteService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PermSite selectOne(Long id) {
        return this.permSiteService.queryById(id);
    }

}